﻿#region Librerias

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using ESF.General;
using ESF.Peer;

#endregion


namespace ESF.SMTPServer
{
	public partial class SMTPService : BaseWindowsService
	{
		#region Members

		private SMTPServer _SMTPPeer;

		private bool _IsCheckingEmailQueue;

		#endregion


		#region Constructor
		
		public SMTPService ()
		{
			_SMTPPeer = new SMTPServer ();

			_IsCheckingEmailQueue = false;
		}

		#endregion


		#region Methods

		public override void DoStart()
		{
			_SMTPPeer.Start ();
		}


		public override void DoStop()
		{
			_SMTPPeer.Stop ();
		}

		#endregion


		#region Timer

		protected override void Timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
		{
			if (_IsCheckingEmailQueue)
			{
				return;
			}


		}

		#endregion
	}
}
